package products;

public class Main {
	public static void main(String[] args){
		Product product = new Product("bluza neagra", "Kenvelo", 43.00);
		System.out.println("Produs 1");
		System.out.println(product);
		ProductStateMemory memory = new ProductStateMemory();
		memory.setMemento(product.memento());
		product.setName("bluza rosie");
		product.setDescription("Nike");
		product.setCost(60.35);
		System.out.println("\nProdus 2");
		System.out.println(product);
		product.restoreMemento(memory.getMemento());
		System.out.println("\nProdus 3");
		System.out.println(product);
	}
}
